<?php

class LicenseInfo
{
    public $userId;
    public $serial;
    public $gate;
    public $product;
    public $license;
    public $version;
    public $name;
    public $email;
    public $company;
    public $web;
    public $country;
    public $quantity;
    public $total;
    public $orderId;
    public $blacklisted;
    public $notes;
    public $password;
    public $upgrade;
    public $time;
    public $subscribed;
    
    public function Parse( XPathHelper $helper )
    {
        $this->userId       = $helper->GetText("UserId");
        $this->serial       = $helper->GetText("Serial");
        $this->gate         = $helper->GetText("Gate");
        $this->product      = $helper->GetText("Product");
        $this->license      = $helper->GetText("License");
        $this->version      = $helper->GetText("Version");
        $this->name         = $helper->GetText("Name");
        $this->email        = $helper->GetText("Email");
        $this->company      = $helper->GetText("Company");
        $this->web          = $helper->GetText("Web");
        $this->country      = $helper->GetText("Country");
        $this->quantity     = $helper->GetText("Quantity");
        $this->total        = $helper->GetText("Total");
        $this->orderId      = $helper->GetText("OrderId");
        $this->blacklisted  = Util::GetAsBoolean($helper->GetText("Blacklisted"));
        $this->notes        = $helper->GetText("Notes");
        $this->password     = $helper->GetText("LicensePassword");
        $this->upgrade      = Util::GetAsBoolean($helper->GetText("Upgrade"));
        $this->time         = $helper->GetText("Time");
        $this->subscribed   = Util::GetAsBoolean($helper->GetText("Subscribed"));
    }
}

?>